package cheme.ProcessEditor.Parts.Streams.Tag;

import org.eclipse.draw2d.Label;
import org.eclipse.gef.DragTracker;
import org.eclipse.gef.Request;

import cheme.ProcessEditor.Figures.FieldFig;
import cheme.ProcessEditor.Parts.AbstractSelectionModelPart;

public class PartUnitsField extends AbstractSelectionModelPart implements IDragParentOnly
{
	@Override
	protected FieldFig createFigure()
	{
		FieldFig fig = super.createFigure();
		fig.setToolTip(new Label(getModel().getToolTipText()));
		//fig.setToolTip(new Label("A description of the unit of measure for this component.\n(Double click or press space-bar to edit)"));
		return fig;
	}
	
	@Override
	public DragTracker getDragTracker(Request request)
	{
		return new ChemeDragEditPartsTracker(this);
	}
}
